﻿using Blog.Application.Condition;
using Blog.Application.DTO;
using Blog.Domain;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;

namespace Blog.Application.Service
{
   public interface IUserService
    {
        /// <summary>
        /// 查询单个用户
        /// </summary>
        /// <param name="where"></param>
        /// <returns></returns>
        UserDTO SelectSingle(UserCondition condition);
        /// <summary>
        /// 登录操作
        /// </summary>
        /// <param name="account"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        UserDTO Login(string account,string password);
        /// <summary>
        /// 创建一个用户
        /// </summary>
        /// <param name="userDTO"></param>
        void Create(UserDTO userDTO);
        /// <summary>
        /// 创建qq用户
        /// </summary>
        /// <param name="userDTO"></param>
        void CreateQQUser(UserDTO userDTO);
        /// <summary>
        /// 更新用户
        /// </summary>
        /// <param name="userDTO"></param>
        void Update(UserDTO userDTO);
    }
}
